import os

class Settings:
    AUDIO_CACHE_DIR = "audio_cache"
    DEFAULT_SPEED = 150
    DEFAULT_VOLUME = 0.9
    DEFAULT_VOICE = "auto"
    MAX_FILE_AGE_HOURS = 24
    LOG_DIR = "logs"
    LOG_FILE = "app.log"

    # 创建必要的目录
    os.makedirs(AUDIO_CACHE_DIR, exist_ok=True)
    os.makedirs(LOG_DIR, exist_ok=True)

settings = Settings()